package com.hzhc.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hzhc.entity.SysWxRole;
import com.hzhc.utils.ResultUtil;
import com.hzhc.vo.SysWxRoleVo;
import org.apache.poi.ss.formula.functions.T;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * <p>
 * 微信小程序角色管理 服务类
 * </p>
 *
 * @author 功不唐捐
 * @since 2023-11-07
 */
public interface SysWxRoleService extends IService<SysWxRole> {
    List<SysWxRole> getList(Page<SysWxRole> pagination, SysWxRoleVo vo);

    ResultUtil<T> addRet(HttpServletRequest request, SysWxRole sysWxRole);

    ResultUtil<T> updateDelete(Long id);

    ResultUtil<T> updateRet(HttpServletRequest request, SysWxRole sysWxRole);

    ResultUtil<T> checkWxName(SysWxRoleVo data);

    ResultUtil<T> updateGrantRoleRet(Long roleid, String data);


    List<SysWxRole> getSysWxRoleJson(Page<SysWxRole> page, SysWxRoleVo vo);

    List<Long> getWxUserMenuList(Long id);
}
